package com.cyk.mp.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cyk.mp.model.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    //wrapper 的变量声明必须是 ew
    void updateBatchByIds(
            @Param(Constants.WRAPPER) LambdaQueryWrapper<User> wrapper,
            @Param("addAge") int addAge
    );

}
